<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>W-IO监控中心</title>
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="this is my page">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="/LayerUI/css/layui.css">
<link rel="stylesheet" href="/ztree/zTreeStyle/zTreeStyle.css" type="text/css">
<link rel="stylesheet" type="text/css" href="/RoleMg/RoleMg.css">
<!-- <link rel="stylesheet" type="text/css" href="/SystemShow/css/SystemShow.css"> -->
</head>
<body>
<button id='btn'>上传</button>
</body>
<script type="text/javascript">
	var tabNamesType = [];
</script>
<script type="text/javascript" src="/AllJs/jquery-1.10.2.js"></script>
<script type="text/javascript" src="/AllJs/w-io-websocket.js"></script>
<script type="text/javascript" src="/AllJs/formhandle.js"></script>
<script type="text/javascript" src="/LayerUI/layui.all.js"></script>
<script type="text/javascript" src="/ztree/jquery.ztree.core-3.5.min.js"></script>
<script type="text/javascript" src="/ztree/jquery.ztree.excheck-3.5.min.js"></script>
<script type="text/javascript" src="/AllJs/wio.js"></script>
<script type="text/javascript">
	$(function(){
		var wsessionId = '123123'; 
		$.getScript('/Roles/role.js',function(){
			$("#RoleMgHandle").click(function(){
				showRoleLeft();
			})
		});
		$("#showflow").click(function(){
			window.open("/flowShow?sessionId=123123");
		})
		$("#btn").click(function(){
			layer.open({
				type:1,
				content:'<div class="layui-upload-drag" id="goodsExcelUpload" style="width:415px;height:128px;">'
					+'<i class="layui-icon"></i>'
					+'<p>点击上传，或将文件拖拽到此处</p>'
					+'</div>',
				area:['500px','240px'],
				id:'goodsExcelUp',
				success:function(layero, index){
					layui.use('upload',function(){
						var $ = layui.jquery
						,upload = layui.upload;
						upload.render({
							elem:'#goodsExcelUpload',
							data:{'sessionId':wsessionId},
							accept:'file',
							exts:'bak',
							url:'/bfdbfile',
							done:function(res){
								layer.msg(res.type);
								table.reload('goodstable',{
									page:{
										curr:1
									}
								});
							}
						});
					})
				}
			})
		})
	})
</script>
<script type="text/javascript">
	//用于刷新页面缓存
	$(function(){
		document.onkeydown = function(e){
			e = e || window.event;
			if(e.keyCode == 116){
				$.ajax({
					url:'/systemRefreshStatic',
					type:'get',
					data:{'sessionId':'123123'}
				})
			}
		}
	})
</script>
</html>